#import <UIKit/UIKit.h>
@class XZPickView;
@protocol XZPickViewDataSource <NSObject>
@required
- (NSInteger)numberOfComponentsInPickerView:(XZPickView *)pickerView;
- (NSInteger)pickerView:(XZPickView *)pickerView numberOfRowsInComponent:(NSInteger)component;
@end
@protocol XZPickViewDelegate <NSObject>
- (NSString *)pickerView:(XZPickView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component;
- (void)pickView:(XZPickView *)pickerView confirmButtonClick:(UIButton *)button;
@optional
- (NSAttributedString *)pickerView:(XZPickView *)pickerView attributedTitleForRow:(NSInteger)row forComponent:(NSInteger)componen;
- (void)pickerView:(XZPickView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component;
@end
@interface XZPickView : UIView
@property (nonatomic, weak) id<XZPickViewDelegate> delegate;
@property (nonatomic, weak) id<XZPickViewDataSource> dataSource;
- (instancetype)initWithFrame:(CGRect)frame title:(NSString *)title;
- (void)show;
- (void)dismiss;
- (void)selectRow:(NSInteger)row inComponent:(NSInteger)component animated:(BOOL)animated;
- (NSInteger)selectedRowInComponent:(NSInteger)component;
-(void)pickReloadComponent:(NSInteger)component;
-(void)reloadData;
@end
